package com.theaf.core.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @Author:songwenke
 * @Description:rabbitemq消息队列配置
 * @Date:create in 14:53 2018/2/27
 * @Modified By:
 **/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface MqConfig {
    /**
     * 1 普通消息  2广播消息
     * @return
     */
    int type() default 1;
    String topic();
}
